from urllib.parse import quote

def chinese_url_transcoding(chine):
    """将url中的汉字进行编码"""
    if '\u4e00' <= chine <= '\u9fff':
        # a = chine.encode('utf-8')
        s = quote(chine)
        print(s)
        return s
    return chine

# chinese_url_transcoding('women')
